﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n = 0, count = 0, sum = 0;
            Console.Write("Введите число -> ");
            n = Convert.ToInt32(Console.ReadLine());
            while (n != 0)
            {
                int a = n % 10;
                sum += a;
                n /= 10;
                count++;
            }
            Console.WriteLine("Чисел -> " + count + "\nСумма -> " + sum);
        
        }
    }
}
